package org.hako.recite.word.dict.impl;

import java.util.ArrayList;
import java.util.List;

import org.hako.recite.word.dict.FindMeaningException;
import org.hako.recite.word.dict.MeaningFinder;

/**
 * This finder will return link of meaning.
 * 
 * @author xnnyygn
 */
public class LinkMeaningFinder implements MeaningFinder{

    private List<LinkCreator> linkCreators;

    /**
     * Create
     */
    public LinkMeaningFinder() {
        super();
        linkCreators = new ArrayList<LinkCreator>();
        linkCreators.add(new HJLinkCreator());
        linkCreators.add(new ExciteLinkCreator());
    }
    
    
    @Override
    public String find(String word) throws FindMeaningException {
        return linkCreators.get(0).create(word);
    }
    
}
